﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UnixTimeLocalTime.Common
{
    public class MD5
    {
        public static string GetMd5(string str)
        {
            //作为密码方式加密 
            return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "MD5");
        }
    }
}
